<%= form_for @installation,
     :url => create_installed_order_url,
     :remote => true,
     :method => :post do |f|
 %>
<h6><b>新增-完成安装</b></h6>
<%= f.hidden_field :order_item_id %>
<dl>
  <dt>
    派工记录
  </dt>
  <dd>
    <%= f.select :id, @installations.collect {|install| [ "#{install.installer_full_name}于『#{install.installed_on}』上门安装【#{install.order_item.furniture_code}-#{install.order_item.furniture_name} => #{install.has_been_sent_to_installer_count}件】", install.id ] }, {}, :id => "installed_#{@installation.id}_id" %>
  </dd>
</dl>
<dl>
  <dt>
    已安装数
  </dt>
  <dd>
    <%= f.text_field :installed_count %>
  </dd>
</dl>
<dl>
  <dt>
    安装成本
  </dt>
  <dd>
    <%= f.text_field :installed_cost %>
  </dd>
</dl>
<dl>
  <dt>
    收款
  </dt>
  <dd>
    <%= f.text_field :gathered_balance, :value => '0.00' %>
  </dd>
</dl>
<dl>
  <dt>
    备注
  </dt>
  <dd>
    <%= f.text_area :installed_remark, :rows => 5%>
  </dd>
</dl>
<dl>
  <dd class="form_tool">
    <%= f.submit '保存' %>
    <%= link_to '返回', new_feed_order_url(@installation.order_item),:remote => true, :method => :get, :id => "new_installed_btn#{@installation.order_item.id}", :class => 'button' %>
  </dd>
</dl>
<div class="clear"></div>
<%end%>
